package cn.edu.swpu.cins.u_chain.frontend.entity.persistence.user.student;

import cn.edu.swpu.cins.u_chain.frontend.entity.dto.user.student.StudentInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DegreeMajorGradeInfo {
    private int degreeMajorGradeId;
    private int majorId;
    private int gradeId;
    private int degreeId;

    public DegreeMajorGradeInfo(StudentInfo studentInfo) {
        this.majorId = studentInfo.getMajorId();
        this.gradeId = studentInfo.getGradeId();
        this.degreeId = studentInfo.getDegreeId();
    }
}
